/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function change(namee){
    document.getElementById("Display_content").innerHTML=document.getElementById(namee).innerHTML;
    //optional Javascript code below - To change color of clicked tab
    var livetab, i,flag,currentcase;
    var flag = document.getElementsByName("countvalue")[0].value;
    i=1;
    do{
        switch(namee){
            case 'tab'+i:
                livetab='t'+i;
                break;
        }
        i++;
    }while(i<=flag);
    for(i=1;i<=flag;i++){
        document.getElementById("t"+i).style="background-color: #e0e0e0; display: block; list-style: none;"+
    "float: left; border: 1px solid #999999; padding: 0px 5px 0px 5px;" +
    "outline: medium none; font-weight: bold; font-family: Arial; font-size: 12px;"+
    "height: 32px; line-height: 31px;cursor:pointer"
    ;

    }
    document.getElementById(livetab).style="display: block; list-style: none;"+
"float: left; border: 1px solid #999999; padding: 0px 5px 0px 5px;" +
"outline: medium none; font-weight: bold; font-family: Arial; font-size: 12px;"+
"height: 32px; line-height: 31px; background-color: white; border-bottom: 1px solid white;";

//optional code ends here

}